package com.example.service.impl;

import com.example.dao.AnnounceDao;
import com.example.dao.impl.AnnounceDaoImpl;
import com.example.pojo.Announce;
import com.example.service.AnnounceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("announceService")
public class AnnounceServiceImpl implements AnnounceService {
    @Resource(name = "announceDao")
    public AnnounceDao announceDao;
    public List<Announce> getAnnounceList() {
        return announceDao.getAnnounceList();
    }
}
